-- GENERATED SPELL FOR [Oro Eyegouge] --


function spell0_7606(pUnit, Event) --@Curse of Weakness,Self--
pUnit:FullCastSpellOnTarget(12741,pUnit)
pUnit:RegisterEvent('Sorts_7606', 605, 1)
end

function spell1_7606(pUnit, Event) --@Immolate,n/a--
pUnit:FullCastSpellOnTarget(11962,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7606', 17000, 1)
end

function spell2_7606(pUnit, Event) --@Rain of Fire,n/a--
pUnit:FullCastSpellOnTarget(11990,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7606', 9000, 1)
end

function spell3_7606(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(9613,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7606', 3000, 1)
end

function Sorts_7606(pUnit, Event)
local choix_sorts_7606 = math.random(0, 3)
if choix_sorts_7606 == 0 then
pUnit:RegisterEvent('spell0_7606', 1, 1)
end
if choix_sorts_7606 == 1 then
pUnit:RegisterEvent('spell1_7606', 1, 1)
end
if choix_sorts_7606 == 2 then
pUnit:RegisterEvent('spell2_7606', 1, 1)
end
if choix_sorts_7606 == 3 then
pUnit:RegisterEvent('spell3_7606', 1, 1)
end
end

function mob7606_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7606', math.random(1500, 3000), 1)
end

function mob7606_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7606_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7606_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7606, 1, 'mob7606_Action')
RegisterUnitEvent(7606, 2, 'mob7606_Leave')
RegisterUnitEvent(7606, 3, 'mob7606_Kill')
RegisterUnitEvent(7606, 4, 'mob7606_Die')
